package cn.signalpha.modules.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "ComplaintDTO对象", description = "投诉")
public class ComplaintDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@NotNull
    @ApiModelProperty(value = "被投诉人id")
    private Long toUserId;
	@NotBlank
    @ApiModelProperty(value = "原因")
    private String cause;
	@NotBlank
    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String img;


	@Data
	public static class UpdateStatusDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "主键,批量操作逗号分隔主键")
		private String id;
		@NotNull
		@ApiModelProperty(value = "状态：0未处理 1已处理")
		private Integer status;
	}

}
